package com.sg.business.commons.editingsupport;

import com.sg.business.model.Deliverable;
import com.sg.widgets.MessageUtil;
import com.sg.widgets.commons.editingsupport.CellClickListener;
import com.sg.widgets.part.editor.DataObjectDialog;

public class WorkSettingDeliEditingSupportor extends CellClickListener {

	@Override
	protected void selected(Object element, String columnId) {
		if (element instanceof Deliverable) {
			try {
				Deliverable deliverable = (Deliverable) element;
				DataObjectDialog.openDialog(deliverable,
						Deliverable.EDITOR_SETTING, true, null);
			} catch (Exception e) {
				MessageUtil.showToast(e);
			}
		}
	}

}
